package com.ccy.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ccy.common.utils.PageUtils;
import com.ccy.product.entity.AttrEntity;
import com.ccy.product.entity.ProductAttrValueEntity;
import com.ccy.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author ccy
 * @email ccy@gmail.com
 * @date 2023-06-19 21:08:47
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attrVo);

    PageUtils queryAttrPage(Map<String, Object> params, Long catelogId, Integer attrType);

    List<ProductAttrValueEntity> listForSpu(Long spuId);

    List<Long> selectSearchAttrs(List<Long> attrIds);

}

